package com.zzx.threekingdom.resmanager;

import android.content.res.Resources;
import android.graphics.Bitmap;

public class ResManager
{
    private ResManager() {};
    
    
    public static ResBitmapLib resLib = new ResBitmapLib();
    public static boolean loaded = false;

    public static Bitmap getBitmap(String name)
    {
        return resLib.getMap(name);
    }
    
    public static void loadBitmapRes(Resources res)
    {
        if(loaded==false)
            resLib.loadRes(res);
        loaded = true;
    }
}
